<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="app">
      <img v-bind:src="url" alt="" />
      <!-- v-bind指令: -->
      <!-- 作用: 给标签属性, 设置一个值 -->
      <!-- 注意:  -->
      <!-- 1. 💥 属性没有v-bind,  属性名="普通字符串" -->
      <!-- 2. 💥 非字符串, 都要加:属性名="值"   -->
      <!-- 点击换成京东的图片 -->
      <img :src="url" alt="" />
    </div>

    <script src="./vue.js"></script>
    <script>
      new Vue({
        el: "#app",
        data: {
          url: "https://www.baidu.com/img/PCtm_d9c8750bed0b3c7d089fa7d55720d6cf.png",
        },
        methods: {},
      });
    </script>
  </body>
</html>
